class Category < ActiveRecord::Base

  belongs_to :user

  has_many :categories_expenses, :dependent => :destroy
  has_many :expenses, :through => :categories_expenses

  validates_presence_of :name

end
